prepare s2_http_method
pre '/* s^2 - HTTP methods'
pre '   Copyright (C) 2018 Ariadne Devos'
pre ''
pre '   This program is free software: you can redistribute it and/or modify'
pre '   it under the terms of the GNU General Public License as published by'
pre '   the Free Software Foundation, either version 3 of the License, or'
pre '   (at your option) any later version.'
pre ''
pre '   This program is distributed in the hope that it will be useful,'
pre '   but WITHOUT ANY WARRANTY; without even the implied warranty of'
pre '   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the'
pre '   GNU General Public License for more details.'
pre ''
pre '   You should have received a copy of the GNU General Public License'
pre '   along with this program.  If not, see <http://www.gnu.org/licenses/>. */'
pre ''
pre '#include <sHT/web/method.h>'

# (RFC 2616 (HTTP/1.1), 5.1.1 Method, p. 36)
for x in OPTIONS GET HEAD POST PUT DELETE TRACE CONNECT; do
	entry "$x" "S2_HTTP_METHOD_$x"
done
# (RFC 4918 (WebDAV), Table of Contents, p. 2-3)
for x in PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK; do
	entry "$x" "S2_WEBDAV_METHOD_$x"
done

solve
